<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/9
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>

    <title>活动</title>
    <%@ include file="/common/include-core.jsp" %>

</head>
<body>
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-media-add"  enctype="multipart/form-data">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="hidden" class="input-text" value="${activity.tid}" id="tid" name="tid"/>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${activity.name}" placeholder="" id="name" name="name">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">执行方法：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select-default radius input-text" name="execClass">
                    <option value="" ${activity.execClass==''?"selected":""}>无</option>
                    <option value="offLinePopularize" ${activity.execClass=='offLinePopularize'?"selected":""}>线下推广（免运费）</option>
                </select>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">简介：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${activity.info}" placeholder="" id="info" name="info">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">类型：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select-default radius input-text" name="activityType">
                    <option value="1" ${activity.activityType==1?"selected":""}>减免类</option>
                    <option value="2" ${activity.activityType==2?"selected":""}>抽奖类</option>
                    <option value="3" ${activity.activityType==3?"selected":""}>折扣类</option>
                </select>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">开始时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
                       value="<fmt:formatDate value="${activity.startDate}" pattern="yyyy-MM-dd"/>"
                       placeholder="开始时间" id="startDate" name="startDate">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">结束时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
                       value="<fmt:formatDate value="${activity.endDate}" pattern="yyyy-MM-dd"/>"
                       placeholder="结束时间" id="endDate" name="endDate">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="region select radius input-text" name="status">
                    <option value="1">有效</option>
                    <option value="0">无效</option>
                </select>
            </div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3" style="position:absolute; height:400px; overflow:auto">
                <button type="button" class="btn btn-success radius" id="mediaAdd" name="admin-role-save"><i class="icon-ok"></i> 确定</button>
            </div>
        </div>
    </form>
</article>

<script type="text/javascript" src="/static/js/activity/activity.js"></script>


<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
